﻿<%@ Page   Language="C#" AutoEventWireup="true" CodeBehind="contactos.aspx.cs" Inherits="GesWork.maestros.contactos" %>



    <asp:content ID="df" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
      
      
      
             <table class="tblGeneral" >
            <tr class="tblHeader">
                  
                    <td>
                    Nombre
                    </td>
                    
                    <td>
                    Telefono
                    </td>
                    <td>
                    Fax
                    </td>
                    <td>
                    Email
                    </td>

                </tr>
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <ItemTemplate>
                <tr class="tblBody">
                    <td>
                    <a href="contacto.aspx?id=<%# Eval("ID") %>" >  <%# Eval("Name") %>  <%# Eval("FirstName")%> <%# Eval("LastName")%></a>
                    </td>
                    
                    <td>
                    <%# Eval("CI_Telephone1")%>
                    </td>
                    <td>
                    <%# Eval("CI_Fax")%>
                    </td>
                    <td>
                    <a href="mailto:<%# Eval("CI_Email1")%>"><%# Eval("CI_Email1")%></a>
                    </td>

                </tr>
                </ItemTemplate>
                </asp:Repeater>
            </table>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:gesworkConnectionString %>" 
        SelectCommand="SELECT [ID], [Name], [FirstName], [LastName], [CI_Fax], [CI_Telephone1], [CI_Email1] FROM [Contact] ORDER BY [FirstName]">
    </asp:SqlDataSource>
    
    
    <br />
             <br />
           
             <asp:ImageButton ID="NewButton" runat="server"   
                 ImageUrl="~/images/btnNuevo.png"  CssClass="botones" CausesValidation="False" 
                    CommandName="New" PostBackUrl="~/maestros/contacto.aspx"   />

<p>
</p>
    </asp:content>

